package com.beisita.mp.service;

import com.beisita.mp.mapper.UserMapper;
import com.beisita.mp.pojo.User;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
public class UserService {

    @Resource
    private UserMapper userMapper;


    @Transactional
    public void userAdd(User user) {
        int insert = userMapper.insert(user);
        throw new NullPointerException("");
    }

    public UserMapper getUserMapper() {
        return userMapper;
    }

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }
}
